package cn.com.oil.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Controller
public class WebController {

    @GetMapping(value = "/{path:[^\\.]*}")
    public String index(@PathVariable String path) {
        return "index";
        // 返回静态文件中的 index.html 页面
    }
}